package com.example.myapplication;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class MyBroadcastReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
//        Log.e("MyBroadcastReceiver","onReceive");
        String action = intent.getAction();
        Log.e("MyBroadcastReceiver","onReceive   "+action);
    }
}

